package com.demo.controller;

import com.demo.entity.SsoUser;
import com.demo.entity.User;
import com.demo.service.SsoUserService;
import com.demo.utils.UUIDUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gy
 * @date 2023/3/16
 */
@RestController
@RequestMapping("/ssoUser")
public class SsoUserController {

    @Autowired
    private SsoUserService ssoUserService;

    @RequestMapping("/add")
    public String add(){
        try {
            ssoUserService.addSsoUser(
                    new SsoUser(1, UUIDUtil.getUUIDRandom(),"李四",UUIDUtil.getUUIDRandom()));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "success";
    }
}
